package org.apache.zookeeper.server.paxos2;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: wangw
 * Date: 2011-6-12
 * Time: 21:41:05
 * To change this template use File | Settings | File Templates.
 */
public class StartSync extends Message {
	public int sid;
	public long zxid;

	@Override
	public void deserialize(DataInputStream in) throws IOException{
		sid = in.readInt();
		zxid = in.readLong();
		
	}
	@Override
	public void serialize(DataOutputStream out) throws IOException{
		out.writeInt(sid);
		out.writeLong(zxid);
		
	}
	
}
